package com.eyas.business.model.jdbcEntity.table;

import com.eyas.core.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Auther: 王龙龙
 * @Date: 2019/4/21 10:12
 * @Description:
 */
@Table("childreninfo")
public class ChildrenInfo {
    @PrimaryKey(value = "cid",columnType = ColumnType.INT,columnSize = 8,IsNull = false,inrementType = IncrementType.AUTOINCREMENT)
    private Integer cid;
    @Column(column = "userid",columnType = ColumnType.INT,IsNull = false)
    private Integer userid;
    @Column(column = "cname",columnType = ColumnType.STRING,IsNull = false,columnSize = 50)
    private String cname;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Column(column = "birthday",columnType = ColumnType.DATE,IsNull = true)
    private Date birthday;
    @Column(column = "csex",columnType = ColumnType.STRING,IsNull = true,columnSize = 1)
    private String csex;

    public String getCsex() {
        return csex;
    }

    public void setCsex(String csex) {
        this.csex = csex;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }
}
